<!DOCTYPE html>
<!-- http://crbug.com/147592
     http://webkit.org/b/96354 -->
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}

document.addEventListener("DOMContentLoaded", runTest);

function runTest()
{
    addEventListener("message", clear);
}

function clear(event)
{
    document.body.innerText = "";
    setTimeout(done, 0);
}

function done()
{
    document.body.innerText = "PASS";
    if (window.testRunner)
        testRunner.notifyDone();
}
</script>
<iframe id="frame" src="resources/detached-frame-crash-frame.html"/>
